package com.chinamobile.errorfind.gameview;

import com.chinamobile.errorfind.FindGameAct;
import com.chinamobile.errorfind.constant.GameConstants;

import android.R.color;
import android.R.integer;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.view.SurfaceHolder.Callback;

public class TimeBarSurface extends SurfaceView implements Callback{
	private FindGameAct mContext;
	public SurfaceHolder mSurfaceHolder;
	
	public TimeBarSurface(FindGameAct context
			)
	{
		super(context);
		mContext = context;
		mSurfaceHolder = this.getHolder();
		mSurfaceHolder.addCallback(this);
	}


	@Override
	public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
		// TODO Auto-generated method stub
		mContext.isRunning = true;
		mContext.timeThread.start();
	}

	@Override
	public void surfaceCreated(SurfaceHolder arg0) {
	}

	@Override
	public void surfaceDestroyed(SurfaceHolder arg0) {
		// TODO Auto-generated method stub
		
	}
}
